package com.ysd.lis.controller.cri;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.cri.CriNoticeStep;
import com.ysd.lis.service.cri.CriNoticeStepService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 通知步骤 前端控制器
 * </p>
 *
 * @author wh
 * @since 2025-02-13
 */
@RestController
@RequestMapping("/lis/cri/noticeStep")
public class CriNoticeStepController extends BaseController {

    @Autowired
    private CriNoticeStepService criNoticeStepService;

    @ApiOperation("获取通知步骤")
    @GetMapping("/findNoticeStepList")
    public Result findnoticeStepList(String keywords) {
        return criNoticeStepService.findnoticeStepList(keywords);
    }

    @ApiOperation("新增或修改发布方式信息")
    @PostMapping("/saveOrUpdateNoticeStep")
    public Result saveOrUpdateNoticeStep(@RequestBody CriNoticeStep criNoticeStep) {
        return criNoticeStepService.saveOrUpdateNoticeStep(criNoticeStep);
    }

    @ApiOperation("删除发布方式信息")
    @PostMapping("/deleteNoticeStepList")
    public Result deleteNoticeStepList(@RequestBody List<CriNoticeStep> sysPost) {
        return criNoticeStepService.deleteNoticeStepList(sysPost);
    }


}
